<?php 
class DomDBLoggerTestCase extends UnitTestCase {
	
	public function testConstruct() {
		try {
			$logger = new DomDBLogger('AZaz09-_');
			$this->assertTrue(true);
		} catch( RuntimeException $e ) {
			if( $e->getCode() == 101 )
			$this->assertFalse(true, 'Exception thrown!');
		}	
		
		try {
			$logger = new DomDBLogger('"');
			$this->assertFalse(true, 'Exception not thrown!');
		} catch( RuntimeException $e ) {
			$this->assertTrue(true);
		}	
		
		try {
			$logger = new DomDBLogger('!');
			$this->assertFalse(true, 'Exception not thrown!');
		} catch( RuntimeException $e ) {
			$this->assertTrue(true);
		}	
		
		try {
			$logger = new DomDBLogger('.');
			$this->assertFalse(true, 'Exception not thrown!');
		} catch( RuntimeException $e ) {
			$this->assertTrue(true);
		}	
		
		try {
			$logger = new DomDBLogger('\'');
			$this->assertFalse(true, 'Exception not thrown!');
		} catch( RuntimeException $e ) {
			$this->assertTrue(true);
		}	
		
		try {
			$logger = new DomDBLogger('');
			$this->assertFalse(true, 'Exception not thrown!');
		} catch( RuntimeException $e ) {
			$this->assertTrue(true);
		}	

	
	}
}
?>